:root {
    color-scheme: light dark;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

.page {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 24px;
    background: Canvas;
    color: CanvasText;
}

.card {
    width: 100%;
    max-width: 420px;
    border: 1px solid rgba(128, 128, 128, .3);
    border-radius: 12px;
    padding: 24px;
    background: Canvas;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.title {
    margin: 0 0 8px 0;
    font-size: 22px;
    font-weight: 600;
}

.subtitle {
    margin: 0 0 16px 0;
    color: GrayText;
    font-size: 13px;
}

form {
    display: grid;
    gap: 14px;
}

label {
    font-size: 13px;
    color: GrayText;
}

input[type="text"], input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid rgba(128, 128, 128, .35);
    background: Field;
    color: FieldText;
    outline: none;
}

input[type="text"]:focus, input[type="password"]:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: GrayText;
}

.btn {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: #3b82f6;
    color: #fff;
    cursor: pointer;
    font-weight: 600;
}

.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.messages {
    margin: 8px 0;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.msg-error {
    background: #fee2e2;
    color: #991b1b;
}

.msg-info {
    background: #dbeafe;
    color: #1e3a8a;
}

.errors {
    color: #b91c1c;
    font-size: 13px;
}

.help {
    color: GrayText;
    font-size: 12px;
}

.footer {
    margin-top: 8px;
    text-align: center;
    font-size: 12px;
    color: GrayText;
}

a {
    color: #2563eb;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


